package QL;

import java.util.Map;

public class ButlerRealGoodsOrderGetListRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 订单编号，全部订单请填0
    /// </summary>
    public long OrderId;

    /// <summary>
    /// 要查询的玩家Id，全部玩家请填0
    /// </summary>
    public long UserId;

    /// <summary>
    /// 实物物品Id，全部物品请填0
    /// </summary>
    public long GoodsId;

    /// <summary>
    /// 0全部状态 1未发货状态 2已发货状态 3已拒绝状态
    /// </summary>
    public long State;

    /// <summary>
    /// 是否按照兑换时间筛选 1是0否
    /// </summary>
    public long IsFilterCreateTime;

    /// <summary>
    /// 开始兑换时间
    /// </summary>
    public String StartCreateTime;

    /// <summary>
    /// 结束兑换时间
    /// </summary>
    public String EndCreateTime;

    /// <summary>
    /// 是否按照处理时间筛选 1是0否
    /// </summary>
    public long IsFilterProcessTime;

    /// <summary>
    /// 开始处理时间
    /// </summary>
    public String StartProcessTime;

    /// <summary>
    /// 结束处理时间
    /// </summary>
    public String EndProcessTime;

    /// <summary>
    /// 第几页？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少条纪录？
    /// </summary>
    public long PageCount;

    @Override
    public String GetApiName()
    {
        return "butler.real.goods.order.get.list";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("order_id", String.valueOf(OrderId));
        map.put("user_id", String.valueOf(UserId));
        map.put("goods_id", String.valueOf(GoodsId));
        map.put("state", String.valueOf(State));
        map.put("is_filter_create_time", String.valueOf(IsFilterCreateTime));
        map.put("start_create_time", StartCreateTime);
        map.put("end_create_time", EndCreateTime);
        map.put("is_filter_process_time", String.valueOf(IsFilterProcessTime));
        map.put("start_process_time", StartProcessTime);
        map.put("end_process_time", EndProcessTime);
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
    }
}
